import request from "@/utils/request";

//获取帖子详情
export function getPostsDetail(id){
  return request({
    url:'talks/posts/detail/'+id,
    method:"GET"
  })
}

//分页获取帖子的评论
export function getComment4Page(params){
  return request({
    url:`talks/posts/comment/list?postsId=${params.id}&page=${params.page}`,
    method:'GET'
  })
}

export default{
  getPostsDetail,
  getComment4Page
}
